This sample demonstrates how the touch keyboard can be launched automatically in custom controls that are not derived from platform controls.
The sample implements custom controls that require keyboard input and are not derived from standard XAML controls that accept input (such as TextBox, RichTextBox, or PasswordBox). The sample implements the following UI Automation Control Pattern interfaces: the TextPattern provider interface (ITextProvider) and the ValuePattern provider interface (IValueProvider). This ensures that the touch keyboard is invoked when a user taps on the custom control.
To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.
To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.
Related topics
- Windows 8 app samples
- Conceptual
- Responding to user interaction
- Guidelines and checklist for touch keyboard
- Getting started with apps
- Reference
- Windows.UI.Core
Operating system requirements
| Client | |
|---|---|
| Server |
Build the sample
-
Start Visual Studio and select File > Open > Project/Solution.
-
Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Microsoft Visual Studio Solution (.sln) file.
-
Press F7 or use Build > Build Solution to build the sample.
Run the sample
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.